package com.woniuxy.yoga.order.model.exception;

public enum OrderExceptionCode {
    ORDER_EXCEPTION_CODE_NO_IDCARD(70001, "请先进行实名认证"),
    ORDER_EXCEPTION_CODE_USER_STATE_WRONG(70002, "用户状态有误"),
    ORDER_EXCEPTION_CODE_PRODUCT_STATE_WRONG(70003, "产品状态有误"),
    ORDER_EXCEPTION_CODE_STORE_STATE_WRONG(70004,"商家状态有误"),
    ORDER_EXCEPTION_CODE_TEAM_PRODUCT_STATE_WRONG(70005,"团课状态有误"),
    ORDER_EXCEPTION_CODE_PRIVAYE_PRODUCT_STATE_WRONG(70004,"私教课状态有误"),
    ORDER_EXCEPTION_CODE_ORDER_NOT_EXIST(70005,"订单不存在"),
    ORDER_EXCEPTION_CODE_ORDER_NO_PAY(70006,"订单状态有误"),
    ORDER_EXCEPTION_CODE_SYSTEM_BUSY(70007,"系统繁忙"),
    ORDER_EXCEPTION_CODE_EXPERIENCE_ONCE(70008,"体验卡只能购买一次"),
    ORDER_EXCEPTION_CODE_INFINITY_ONCE(70009,"终身卡只能购买一次"),
    ORDER_EXCEPTION_CODE_COACH_STATE_WRONG(70010, "教练状态有误"),
    ORDER_EXCEPTION_CODE_TEAM_COUNT_FULL(70011, "团课预约人数已满"),
    TIME_START_AFTER_END(70012, "时间不合法，请重新输入"),
    ORDER_EXCEPTION_CODE_STORE_NOT_EXIST(70013, "当前门店不存在");


    private final Integer code;
    private final String message;

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    OrderExceptionCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
